All Functions of Week 10

mean

{base}

Get mean of a vector

filter

{dplyr}

Filter out rows of a data frame according to logical vector

cut

{base}

Convert Numeric to Factor

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

sd

{stats}

Get standard deviation of a vector

setwd

{base}

Set Working Directory

ecdf

{stats}

Compute an empirical cumulative distribution function

mutate

{dplyr}

Modify/create a column in a data frame

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

sample_n

{dplyr}

Sample a number of observations from a data frame

element_text

{GGPLOT2}

Customise text in GGPLOT2

c

{base}

Combine values/vectors into a vector

set.seed

{base}

Initialise a pseudorandom number generator.

sqrt

{stats}

Square root

library

{base}

Load an R package

summary

{base}

Obtain summary statistics or detailed regression output

as.numeric

{base}

Coerce a vector to numeric

stat_ecdf

{GGPLOT2}

Compute empirical cumulative distribution

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

geom_bar

{GGPLOT2}

Generates a bar chart

ggplot

{GGPLOT2}

Create a ggplot graph

geom_segment

{GGPLOT2}

Generates a line segment or curve

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

ylab

{GGPLOT2}

Label the y axis (ggplot)

theme

{GGPLOT2}

Set theme for GGPLOT2

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

The end!